package com.xt.tea.entity.exception;


import com.xt.tea.entity.enums.RequestResultEnum;

public class GlobalException  extends RuntimeException{

    private final RequestResultEnum requestResultEnum;

    public GlobalException(RequestResultEnum requestResultEnum) {
        super(requestResultEnum.getMsg());
        this.requestResultEnum=requestResultEnum;
    }

    public RequestResultEnum getRequestResultEnum() {
        return requestResultEnum;
    }
}
